@import '@/style/app.scss';

.component-autoupdate{
  width: 300px;
  padding: 20px;
  position: fixed;
  z-index: $index;
  right: 30px;
  bottom: 30px;
  background: rgba(0, 0, 0, .8);
  border-radius: 10px;
  overflow: hidden;

  &.over{
    background: $color-success;
  }

  .btn{
    float: right;
  }

  .version{
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    padding-right: 20px;
    overflow: hidden;
  }

  .content{
    width: 100%;
    line-height: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    padding-top: 8px;
  }
  
  .progress{
    width: 100%;
    height: 4px;
    position: absolute;
    bottom: 0;
    left: 0;
    
    span{
      height: 100%;
      background: $color-success;
      display: block;
    }
  }
}

.component-window{
  position: fixed;
  top: 20px;
  width: 18px;
  height: 18px;
  border-radius: 100%;
  cursor: pointer;
  z-index: $index;

  &.full{
    left: 50px;
    background: $color-warning;

    &:hover{
    box-shadow: 0 2px 7px $color-warning;
    }
  }

  &.min{
    left: 80px;
    background: $color-success;

    &:hover{
    box-shadow: 0 2px 7px $color-success;
    }
  }

  &.exit{
    left: 20px;
    background: $color-error;

    &:hover{
    box-shadow: 0 2px 7px $color-error;
    }
  }
}

.component-lang{
  padding:5px 0 5px 15px;
  cursor: pointer;
  position: relative;

  &:hover{
    color: $color;
  }

  .dot{
    width: 5px;
    height: 5px;
    background: $color;
    border-radius: 50%;
    position: absolute;
    top: 12px;
    left: 0;
  }
}

.component-password{
  width: 100%;

  input{
    text-align: center;
    letter-spacing: 30px;
    font-size: 16px;
  }
}

.component-keycode{
  width: 70%;
  height: 0;
  position: fixed;
  z-index: $index;
  left: 0;
  right: 0;
  top:0; 
  bottom:0;
  margin:auto;
  display: flex;
  justify-content: center;
  align-items: center;  

  span{
    padding:10px 15px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 18px;
    line-height: 25px;
    word-break: break-all;

    i{
      color: $color-success
    }
  }
}

.component-levelpassword{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .form{
    width: 250px;
    margin: 20px auto;
  }

  .icon{
    padding-top: 20px;
    text-align: center;
    font-size: 16px;
    color: $color-title;

    i{
      font-size: 50px;
      color: $color;
      padding-bottom: 10px;
      display: block;
      margin: 0 auto; 
    }
  }
}